//
//  YQCollectionViewCell.m
//  EPA--1
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 刘永庆. All rights reserved.
//

#import "YQCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@interface YQCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView1;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@end

@implementation YQCollectionViewCell

- (void)awakeFromNib {
    
}
- (void)setModel:(YQHomeModel *)model
{
    if (_model != model) {
        _model = model;
    }
}
- (void)layoutSubviews
{
    self.titleLable.text = self.model.name;
    [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
}
@end
